package org.csmzxy.class2333.Thread01;

import java.util.concurrent.Callable;

class MyCallable01 implements Callable<String> {
    @Override
    public String call() throws InterruptedException {
        while (true) {
            String str = Thread.currentThread().getName() +
                    ":call()方法在运行";
            System.out.println(str);
            Thread.sleep(1000);
            return str;
        }
    }
}
